/*
 * Hexagon.cpp
 *
 *  Created on: 2008-11-22
 *      Author: ck
 */

#include "Hexagon.h"
#include <QPainter>

Hexagon::Hexagon(int rx, int ry) {
	x = rx;
	y = ry;
}

QRectF Hexagon::boundingRect() const {
        return QRectF(0, 0, 10, 10);
}

void Hexagon::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
                QWidget *widget) {
	painter->drawPixmap(QRect(x,y,20,20),QPixmap(QString("/home/ck/programowanie/eclipse/cpp/multi_snake/gfx/food.png")));
	update();
}

Hexagon::~Hexagon() {
	// TODO Auto-generated destructor stub
}
